package com.lijy.list;

import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Lijingyu on 2017/6/20.
 */
public class ListTest {

    @Test
    public void testList(){
        List list = new ArrayList();
        System.out.println(list);

        for (int i = 0; i < 50; i++) {
            String id = "id" + i;
            list.add(id);
        }

        System.out.println(list);
        List list1 = list.subList(0, 25);
        System.out.println(list1);
        List list2 = list.subList(25, 50);
        System.out.println(list2);


    }

}
